package com.xkdx.guangguang.fragment.shop.photo;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.xkdx.guangguang.module.network.AbsAction;

public class PhotoCommentAction extends AbsAction {
	String userID,loginToken,photoID,content;
	public PhotoCommentAction(String userID,String loginToken,String photoID,String content) {
		this.userID=userID;
		this.loginToken=loginToken;
		this.photoID=photoID;
		this.content=content;
	}
	
	@Override
	public void constructRequest() {
		HashMap<String, String> map = new HashMap<String, String>();
		map.put("DeviceID", "2");
		map.put("UserID", userID);
		map.put("LoginToken", loginToken);
		map.put("PhotoID", photoID);
		map.put("Content", content);
		String json = constructJson(map);
		Parameter parameter = new Parameter("commentInterface", "commentOnPhoto", json);

		List<Parameter> list = new ArrayList<Parameter>();
		list.add(parameter);
		requestData = constructMod(list);
	}

}
